|
Author |
Thread Statistics | Show CCP posts - 9 post(s) |
Salvis Tallan
Gallente The Shadow Order Hydra Alliance
|
Posted - 2007.06.21 02:44:00 -
[1]
Originally by: Laendra Edited by: Laendra on 21/06/2007 00:36:51 FEATURE REQUEST: add allianceID and allianceName to the CharacterSheet.xml.aspx output and Characters.xml.aspx output. Default to 0 and 'None'
Agreed. Also thanks to my primitive skillz related to this, naming everything row or rowset threw a big wrench into the works. Gotta figure some more stuff out.
Also gotta vote no on market info throught the site... ------
|
Salvis Tallan
Gallente The Shadow Order Hydra Alliance
|
Posted - 2007.06.21 14:16:00 -
[2]
Originally by: Ray McCormack
Originally by: Salvis Tallan Also gotta vote no on market info throught the site...
Can you provide some reasoning behind that statement?
As, in my mind, it's data that is already available just not in an easily accessible form.
My reason is about 6 months in the works, and not done...
Also, Why why why did you change the charsheet on the API and yet leave the charsheet you can download the same?!!? Gah! So much more needless coding now because not only do i have to parse them differently (not too big an issue), but ill need to handle them individually as well (annoyingly ugly code). ------
|
Salvis Tallan
Gallente The Shadow Order Hydra Alliance
|
Posted - 2007.06.21 14:40:00 -
[3]
Edited by: Salvis Tallan on 21/06/2007 14:41:28 Edited by: Salvis Tallan on 21/06/2007 14:40:57 And just as I get a class going to handle the new char sheet... They changed it. Please go back to where the still had the name in it as well, and not just the number. Right now its:
Quote: <rowset name="skills" key="typeID"> <row typeID="3431" level="3" skillpoints="8000"/> <row typeID="3413" level="3" skillpoints="8000"/> <row typeID="21059" level="1" skillpoints="500"/> <row typeID="3416" level="3" skillpoints="8000"/> </rowset>
used to be:
Quote: <rowset name="skillGroups"> <row groupName="Electronics" groupID="272"> <rowset name="skills"> <row typeName="Signature Analysis" typeID="3431"> <groupID>272</groupID> <flag>7</flag> <rank>1</rank> <skillpoints>8000</skillpoints> <level>3</level> <skillLevel1>250</skillLevel1> <skillLevel2>1414</skillLevel2> <skillLevel3>8000</skillLevel3> <skillLevel4>45255</skillLevel4> <skillLevel5>256000</skillLevel5> </row> </rowset> </row> <row groupName="Learning" groupID="273"> <rowset name="skills"> <row typeName="Charisma" typeID="3637"> <groupID>272</groupID> <flag>7</flag> <rank>1</rank> <skillpoints>8000</skillpoints> <level>3</level> <skillLevel1>250</skillLevel1> <skillLevel2>1414</skillLevel2> <skillLevel3>8000</skillLevel3> <skillLevel4>45255</skillLevel4> <skillLevel5>256000</skillLevel5> </row> </rowset> </row> </rowset>
Second one was MUCH MUCH nicer and eaiser ------
|
Salvis Tallan
Gallente The Shadow Order Hydra Alliance
|
Posted - 2007.06.21 15:02:00 -
[4]
Originally by: CCP Garthagk
Originally by: Salvis Tallan Second one was MUCH MUCH nicer and eaiser
It was also a waste of bandwidth and redundant. Use /eve/SkillTree.xml.aspx to get the information about what is what.
pwned. I was trying to avoid coding any sort of skill info at all (been just displaying and using the xml untill now). Well, its good to hear that the other charsheet will be switched over. ------
|
Salvis Tallan
Gallente The Shadow Order Hydra Alliance
|
Posted - 2007.06.21 16:44:00 -
[5]
Originally by: Ray McCormack
Originally by: Salvis Tallan
Originally by: Ray McCormack
Originally by: Salvis Tallan Also gotta vote no on market info throught the site...
Can you provide some reasoning behind that statement?
As, in my mind, it's data that is already available just not in an easily accessible form.
My reason is about 6 months in the works, and not done...
So basically you don't want it because you've been coding something that will be made redundant? A little selfish, don't you think?
Absolutly. Let explain a bit. I am a huge proponent of going out and doing something myself, rather than wanting it given to me. I do not like to be handed anything if it is already avalible to me but simply a pain to go and get. Such as market info. I find it much more satisfying when I can look back at a tough job and see it accomplished than just going, 'oh I did something anyone could have done'. Sorry, thats just my opinion. ------
|
Salvis Tallan
Gallente The Shadow Order Hydra Alliance
|
Posted - 2007.06.21 20:57:00 -
[6]
Originally by: FireFoxx80 I'm in the process of writing a .NET class for the Eve API, returning DataSets/DataTables/Values from the EveAPI.
If anyone is interested I will make it public; might take the weekend to rewrite my cowboy code to something usable though.
You can have my current code if it might help you, but all I did was make a Xsd from the xml, then I can just create a Dataset or class from that. This is all new to me, so it might not be the greatest. I would be interested in learning more ways to do it tho (some of the classes from the api through his method are huge). ------
|
Salvis Tallan
Gallente The Shadow Order Hydra Alliance
|
Posted - 2007.06.22 20:26:00 -
[7]
Quick question about cache times. How do they get determined, specifically the character sheet? ------
|
Salvis Tallan
Gallente The Shadow Order
|
Posted - 2007.06.27 16:34:00 -
[8]
Originally by: Amida Ta
Originally by: Victoria Scott I'd be interested in a public-posted .NET solution. (C# prefered).
The basic stuff in C# is very simple:
WebClient client = new WebClient (); client.Headers.Add ("content-type", "application/x-www-form-urlencoded"); String uploadData = "if needed"; String data = client.UploadString ("http://...", uploadData);
if you want basic code for webrequest instead of WebClient:
private static StreamReader HttpPost( string URI, string Parameters ) { HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create( URI );
myRequest.ContentType = "application/x-www-form-urlencoded"; myRequest.Method = "POST";
byte[] bytes = Encoding.ASCII.GetBytes( Parameters ); myRequest.ContentLength = bytes.Length;
Stream os = myRequest.GetRequestStream(); os.Write( bytes, 0, bytes.Length ); os.Close();
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myRequest.GetResponse();
if ( myHttpWebResponse == null ) return null;
return new StreamReader( myHttpWebResponse ); }
I only have it return a streamreader now, but to return a string or whatever is only 1 line difference. Also this is pretty basic and does not handle (de)compression (which i dont know if the api will use). ------
|
|
|
|